Newer
Older
Import / applications / RocketMan / Source Code / Mutex.h
@John John on 29 Dec 2020 446 bytes bulk import from macbookpro checkouts
/*
 *  Mutex.h
 *  iphone-gl-app
 *
 *  Created by John Ryland on 25/06/09.
 *  Copyright 2009 InvertedLogic. All rights reserved.
 *
 */

#ifndef MUTEX_H
#define MUTEX_H


class Mutex
{
public:
	class MutexAutoLock
	{
	public:
		MutexAutoLock(Mutex *mutex); // locks the mutex
		~MutexAutoLock(); // unlocks the mutex
	private:
		Mutex *autoLockMutex;
	};
	Mutex();
	~Mutex();
	MutexAutoLock lock();
private:
	void *dptr;
};


#endif // MUTEX_H